<?php
$section = "ADMIN";

require_once '../global.inc.php'; 
?>
<div id="setupForm"><div class="title"><span class="form_title">Re-Setting Binder </span> </div>
<?php
   	$updsql = "UPDATE binder_config SET "; 
  	foreach($_POST as $key=>$value) {
  		if(!eregi('mysql',$key)) {
 	  		echo "Setting <strong> $key </strong> => $value <br> "; 
 	  		$values .= "$key='$value',"; 
  			#$fields .= "$key,"; 
  			#$values .= "'$value',";
  		}
  	}
  	
  	$values = substr($values,0,-1); 
  	
  	$fullsql = $updsql . $values ; 
  	
  	$db->mInsert($fullsql);  	
  	
  	echo "Update complete. <br> "; 
?>